﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SBlogCore.WebAdminApplication.SysManager.Dto
{
    public class SysMenuManagerOutPut
    {
        public long Id { get; set; }
        /// <summary>
        /// 当设置 redirect 的时候该路由在面包屑导航中不可被点击
        /// </summary>
        public string? Redirect { get; set; }
        /// <summary>
        /// 除了 layout 对应的 path 前面需要加 /，其余子路由都不要以/开头
        /// </summary>
        public string? Path { get; set; }
        /// <summary>
        /// 路由Name不能重复
        /// </summary>
        public string? Name { get; set; }
        public string? Component { get; set; }
        public int Level { get; set; }
        public int Order { get; set; }
        public long? ParentInfoId { get; set; }
        ///// <summary>
        ///// 当设置 true 的时候该路由不会再侧边栏出现 如404，login等页面(默认 false)
        ///// </summary>
        //public bool? Hidden { get; set; }
        /// <summary>
        /// 是否在左侧显示根目录
        /// </summary>
        public bool? AlwaysShow { get; set; }
        //public bool? NoCache { get; set; }
        //public bool? Breadcrumb { get; set; }
        //public bool? Affix { get; set; }
        //public bool? NoTagsView { get; set; }
        //public string? ActiveMenu { get; set; }
        //public string? FollowAuth { get; set; }
        //public bool? CanTo { get; set; }
        public string? Title { get; set; }
        public string? Icon { get; set; }

        [JsonProperty("ChildrenList")]
        public List<SysMenuManagerOutPut> Children { get; set; } = new List<SysMenuManagerOutPut>();
    }
}
